
const routes = [
    {name:"Login",
        path:"/login",
        component: () => import('@/login')
    },
    {name:"Index",
        path:"/index",
        component: () => import('@/Index'),
        children:[
            {name:"Product",
                path:"/index/product",
                component: () => import('@/product/product')
            },
            {name:"Order",
                path:"/index/order",
                component: () => import('@/order/order')
            },
            {name:"User",
                path:"/index/user",
                component: () => import('@/user/user')
            },
            {name:"Employee",
                path:"/index/em",
                component: () => import('@/employee/employee')
            }
        ]
    },
    {name:"Box",
        path:"/box",
        component: () => import('@/checkboxTest')
    },
    {name:"ElementUI",
        path:"/elementUI",
        component: () => import('@/elementUI/main'),
        children: [
            {name:"Layout",
                path:"/elementUI/layout",
                component: () => import('@/elementUI/layout')
            },
            {name:"Component",
                path:"/elementUI/component",
                component: () => import('@/elementUI/component')
            },
            {name:"Form",
                path:"/elementUI/form",
                component: () => import('@/elementUI/form')
            },
            {name:"chart",
                path:"/elementUI/chart",
                component: () => import('@/elementUI/chart')
            }
        ]
    }
];

export default routes ;